# in config.py
# certificate:get in your Casdoor server -> application
import os
from casdoor import CasdoorSDK

certificate = '''-----BEGIN CERTIFICATE-----
MIIE3TCCAsWgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMCgxDjAMBgNVBAoTBWFk
bWluMRYwFAYDVQQDEw1jZXJ0LWJ1aWx0LWluMB4XDTI0MDYwMTEzNTkxNFoXDTQ0
MDYwMTEzNTkxNFowKDEOMAwGA1UEChMFYWRtaW4xFjAUBgNVBAMTDWNlcnQtYnVp
bHQtaW4wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDxY1fAFpvgB00c
ncMvlmNs+jNCxaP5T5M+rU4jiPlciKk4A9aEKnxQUFsP/aUeVez88UM8ua7MTROr
4ecnnJSk5wUf0M54z02KdVfM7LBisuWgKnN9/e9PvorBcjbXYggzSpUF8cZJNb5u
BirfYVWqoZhGqMRN9Ol4dfkKLJT7V9tqEGw1HGVNpLCd8c35uulHJluljOZSLVuS
Jk5BEhqIr/jcR/YU3hZWUbG6u8cXA2Wq47bJPP0/6GjP0c2SziBtq9aJawV4i+lE
cvjcq9288hgKD7X6SjQZwJ2kS27IKl9/39I/jyEV4VYrC9J0NEN41Nd3qhAgA7wQ
I7pmJ+XOYSZN2nUstqvggDP8ycmjETaRNBRUCecfoFZoEznl/EtnKAe8xEZyL3yx
8gZPponrSmM50hfPoZ+ZUw9yYfs9VIlqLNrhK7WV/jec1WHvlkVYMHKpifH/2E3B
B/iAVorkt2LgmUqdBAIyq+KyosdDi9XynswQAsvjaY3xMeHjvx4kFngAh0zg7rMy
U0Q491AkUgCWUCyw0BRUMC7lEqx57yf97hA/mXGS0byhWAJyrC4h/+gogLN1fGNH
mD9F8WzjngR6/aX1OBG98A8IEpBrS9Enbmc0ntGYZpirm18WFdb6iNvNk6h4n7T0
pj83dysja5Vcfr1HaYxBt60qBeK8RQIDAQABoxAwDjAMBgNVHRMBAf8EAjAAMA0G
CSqGSIb3DQEBCwUAA4ICAQDrseLKgqJfF5YQF7GRmp/oKwAk/gG+iupiwGPVfck2
GLL6POHXmLPD9Ja9hLRZI6FguXc1G5NC5kMIA/XfNFGwMXP94mw/ii2mIjn5Al6F
A/w1Xyb/eB5MBXjLbXUliyDTU+aKdKfap9mfmoiGmlI6ocgfHW8pgANabTauweEF
I9Mo2shPZyDCj/f+diSHQOeKJuKxpo2wdsyVux9rfoP2VW3hMw/Ok2U8HBII8N25
UGZk0WZfKEDk4+A+ajHeN8UqEL/+X5F1e7tSUhs39P8QI731xV0/p86kEl+K7jVM
QfbnFSnL67LEkgvYtAzNLqGrcmew0ZYCVsJgkzEKs2ou6OchZjvoIeNOq1K1+f3b
MQO2OFL962628WsE6gA5/OraW1TELBviC4lAiZZfag6fwoUarn3I829ELdwZ1LEM
OuQr3UcIV2lbDq1pjn2s/KK24ZLGJhwBhJT2CNO08prIp+kmDow1Ezglk7bgne2m
7/YuWRxvFOcmsxT7EYUOUtrHJIFBKe2bpFLxDCCfbk0MMSbM9ayucw8UeS9pXmq4
eP1lmamy82fe3vsX6lKu178+09htoiSTzsM1uK0LXqZJtoDRQAFn9otXXVFdlrSO
MUMRneeae0wtUiHSs+2whqsv5jI5RTjp/49f8id2zt0ibsEI6S4wr1Z0QycN+cGM
eQ==
-----END CERTIFICATE-----'''

class Config:
    sdk = CasdoorSDK(
        endpoint='http://10.22.4.5:32016',
        client_id='ec4f03b5b0ffc2704b0a',
        client_secret='e7d81f983efc12c977b6c69060813778eb893eed',
        certificate=certificate,
        org_name='公务车公司',
        application_name='公务车公司',
    )
    # REDIRECT_URI = 'http://10.22.4.11:9099/login/api/signin'
    # SECRET_TYPE = 'filesystem'
    # SECRET_KEY = os.urandom(24)